//
//  BuyPointsCell.m
//  phmall
//
//  Created by admin on 2017/11/14.
//  Copyright © 2017年 admin. All rights reserved.
//

#import "BuyPointsCell.h"

@implementation BuyPointsCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}
- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self){
        self.contentView.backgroundColor=[UIColor whiteColor];
 
        self.money=[[UILabel alloc]init];
        self.money.font=[UIFont systemFontOfSize:15];
        self.money.textColor=[UIColor colorWithHexString:@"#454545"];
        self.money.text=@"₱30";
        [self.contentView addSubview:self.money];
        
        self.integral=[[UILabel alloc]init];
        self.integral.font=[UIFont systemFontOfSize:15];
        self.integral.textColor=[UIColor colorWithHexString:@"#adadad"];
        self.integral.text=@"5200积分";
        [self.contentView addSubview:self.integral];
        
    }
    
    return self;
}
-(void)layoutSubviews{
    [super layoutSubviews];
    CGSize superSize = self.contentView.frame.size;
    
    if (CGSizeEqualToSize(superSize, CGSizeZero)) {
        return;
    }
    [self.money mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerX.offset(0);
        make.top.offset(8);
    }];
    
    [self.integral mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerX.offset(0);
        make.bottom.offset(-8);
    }];
    
}


@end
